From 11ee9a5faa25fc17e09c986134565825836730e9 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 12 Jan 2007 10:13:25 +0000 Subject: [PATCH] [XEN] Consistent assumption that PTEs contain MFNs in both ptwr page-fault handler and ptwr emulation handler. Signed-off-by: Keir Fraser --- xen/arch/x86/mm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 5aed0051da..a4b93f2b70 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -3182,7 +3182,7 @@ static int ptwr_emulated_update( unsigned int do_cmpxchg, struct ptwr_emulate_ctxt *ptwr_ctxt) { - unsigned long gmfn, mfn; + unsigned long mfn; struct page_info *page; l1_pgentry_t pte, ol1e, nl1e, *pl1e; struct vcpu *v = current; @@ -3222,8 +3222,7 @@ static int ptwr_emulated_update( } pte = ptwr_ctxt->pte; - gmfn = l1e_get_pfn(pte); - mfn = gmfn_to_mfn(d, gmfn); + mfn = l1e_get_pfn(pte); page = mfn_to_page(mfn); /* We are looking only for read-only mappings of p.t. pages. */ -- 2.30.2